<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>健康饮食推荐</title>
    <meta name="keywords" content="面向学习型的开源框架，简洁高效，杜绝过渡封装，展现技术本质本质">
    <meta name="description" content="面向学习型的开源框架，简洁高效，杜绝过渡封装，展现技术本质本质">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/css/plugins/toastr/toastr.min.css" rel="stylesheet">
    <link href="/css/animate.css" rel="stylesheet">
    <link href="/css/style.css?v=4.1.0" rel="stylesheet">
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
	<div class="col-sm-12">
		<div class="ibox">
			<div class="ibox-body">
				<div class="fixed-table-toolbar" style="padding: 10px;">
					<a type="button" class="btn btn-primary" th:href="@{/user/toAdd}">
						<i class="fa fa-plus" aria-hidden="true"></i>
					</a>
				</div>
				<table id="exampleTable" data-mobile-responsive="true" class="table table-hover table-bordered table-striped">
					<thead>
						<tr>
							<th>用户编码</th>
							<th>用户姓名</th>
							<th>用户类型</th>
							<th>用户状态</th>
							<th>操作</th>
						</tr>
						</thead>
						<tbody>
						<tr  th:each="user : ${users}">
							<th scope="row" th:text="${user.id}">1</th>
							<td th:text="${user.username}">neo</td>
							<td th:text="${user.userType}">6</td>
							<td th:text="${user.userState}">Otto</td>
							<td>
								<a class="btn btn-primary btn-sm" title="编辑" th:href="@{/user/toEdit(id=${user.id})}">编辑</a>
								<a class="btn btn-success btn-sm" title="删除" th:href="@{/user/delete(id=${user.id})}">删除</a>
<!--								<a class="btn btn-warning btn-sm" title="重置密码" th:href="@{/user/resetPassword(id=${user.id})}" onclick="prompt();">重置密码</a>-->
							</td>
						</tr>
					</tbody>
				</table>

				<!-- 分页页面,设置页面跳转路径 -->
				<script th:inline="javascript"> var type = "toUser";  </script>
				<div th:replace="public/page::html" ></div>

			</div>
		</div>
	</div>
</div>

<!-- 全局js -->
<script src="/js/jquery.min.js?v=2.1.4" th:src="@{/js/jquery.min.js?v=2.1.4}"></script>
<script src="/js/bootstrap.min.js?v=3.3.6" th:src="@{/js/bootstrap.min.js?v=3.3.6}"></script>
<script src="/js/bootstrap-select.js?v=3.3.6" th:src="@{/js/bootstrap-select.js?v1.6.3}"></script>
<script type="text/javascript" src="/js/plugins/layer/laydate/laydate.js"></script>

<!-- 自定义js -->
<script src="/js/content.js?v=1.0.0" th:src="@{/js/content.js?v=1.0.0}"></script>

<!-- jQuery Validation plugin javascript-->
<script src="/js/ajax-util.js"></script>
<script src="/js/plugins/validate/jquery.validate.min.js" th:src="@{/js/plugins/validate/jquery.validate.min.js}"></script>
<script src="/js/plugins/validate/messages_zh.min.js" th:src="@{/js/plugins/validate/messages_zh.min.js}"></script>
<script src="/js/plugins/layer/layer.min.js" th:src="@{/js/plugins/layer/layer.min.js}"></script>

<script type="text/javascript">

    //提示
    function prompt() {
        layer.msg("重置密码成功");
    }

</script>

</body>
</html>